package com.cube.truthseer.entity.user.dto;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
@Data
@ApiModel(description = "用户注册和修改密码的表单实体")
public class UserFormDto {
    @ApiModelProperty(value = "邮箱", example = "123456@qq.com")
    @NotNull
    @NotBlank
    private String email;
    @ApiModelProperty(value = "密码", example = "123456")
    @NotNull
    @NotBlank
    private String password;
    @ApiModelProperty(value = "验证码", example = "645632")
    @NotNull
    @NotBlank
    private String code;
}
